-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
fix(typescript): add Date instance check before date formatting #21722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(typescript): add Date instance check before date formatting #21722
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the fix!
@0x5457 can you make sure the samples are up-to-date and the CI passes? please merge in the latest master before re-generating the samples. then we can merge it |
Previously, typeScript couldn't properly infer that use separate string variables for the formatted values to fix. @macjohnny |
@0x5457 the samples-up-to-date check still fails, can you take a look? i think its outdsted samples in the master branch, so can you just merge the most recent master and regenerate/commit all changed samples? that should fix it |
@macjohnny It seems that this is an issue with C# (C-Sharp). I noticed that the master branch has the same problem. |
yeah can you regenerate the c# examples? |
80fcccf
to
d289393
Compare
fixes kubernetes-client/javascript#2189
PR checklist
Commit all changed files.
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*
.IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
master
(upcoming7.x.0
minor release - breaking changes with fallbacks),8.0.x
(breaking changes without fallbacks)"fixes #123"
present in the PR description)@TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @topce (2018/10) @akehir (2019/07) @petejohansonxo (2019/11) @amakhrov (2020/02) @davidgamero (2022/03) @mkusaka (2022/04) @joscha (2024/10)